import 'package:flutter/material.dart';

import 'package:flutter_bugly_plugin/flutter_bugly_plugin.dart';

void main() {
  FlutterBugly.init(
      androidAppId: "b7648f0bd2",
      iOSAppId: "7f66c2a142",
      debugPost: true,
      callback: () {
        runApp(MyApp());
      });
}

class MyApp extends StatefulWidget {
  @override
  _MyAppState createState() => _MyAppState();
}

class _MyAppState extends State<MyApp> {
  String _platformVersion = 'Unknown';

  @override
  void initState() {
    super.initState();
    // initPlatformState();
  }

  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      home: Scaffold(
        appBar: AppBar(
          title: const Text('Plugin example app'),
        ),
        body: GestureDetector(
          onTap: () {
            List? a = null;
            a?.length;
          },
          child: Center(
            child: Text('Running on: $_platformVersion\n'),
          ),
        ),
      ),
    );
  }
}
